class ToClass {
public int a = 100;


}

class DoClass extends ToClass{
   public int a = 1000;

    public DoClass() {

    }

    public void set() {
       a = super.a;
   }


}

public class TestDemo {
    public static void main(String[] args) {

        DoClass doclass = new DoClass();

        System.out.println(doclass.a);
    }
}
